package org.wjy.post.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**     
 * 类名称：User   
 * 类描述：用户信息实体
 * 创建人：anan   
 * 创建时间：2012-12-21 下午10:55:19   
 * 修改人：anan  
 * 修改时间：2012-12-21 下午10:55:19   
 * 修改备注：   
 * @version        
 * */
@Entity
@Table(name = "sale_list")
public class Sale_list {
	/**
	 * 用户id
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	
	/**
	 * 用户名
	 */
	@Column(name = "orderid", length = 255)
	private String orderid;
	
	/**
	 * 用户登录密码
	 */
	@Column(name = "goodsid")
	private String goodsid;
	
	@Column(name = "num")
	private int num;
	

	public Sale_list() {
		// TODO Auto-generated constructor stub	
	}
	public Sale_list(int id) {
		// TODO Auto-generated constructor stub
		this.id=id;
	}
	
	public Sale_list(int id,String orderid){
		this.id=id;
		this.orderid=orderid;	
	}
	public int getId() {
		return id;
	}
	@Override
	public String toString() {
		return "Sale_list [id=" + id + ", orderid=" + orderid + ", goodsid="
				+ goodsid + ", num=" + num + "]";
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getOrderid() {
		return orderid;
	}
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	public String getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(String goodsid) {
		this.goodsid = goodsid;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
}
